package com.bestcem.xm.om.dao;

import com.bestcem.xm.om.entity.PackMiddle;

import java.util.List;

/**
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2022/3/22 14:48
 */
public interface PackMiddleDao {
    /**
     * 查询开发平台套餐id列表
     *
     * @param platformId
     * @return java.util.List<java.lang.String>
     * @author zhangfeng <feng.zhang@idiaoyan.com>
     * @date 2022/3/22 17:03
     */
    List<String> listPackIdsByPlatformId(String platformId);

    /**
     * 根据平台id删除
     *
     * @param platformId
     * @return int
     * @author zhangfeng <feng.zhang@idiaoyan.com>
     * @date 2022/4/1 17:15
     */
    int deleteByPlatformId(String platformId);

    /**
     * 批量插入
     *
     * @param list
     * @return int
     * @author zhangfeng <feng.zhang@idiaoyan.com>
     * @date 2022/4/1 17:30
     */
    int batchInsert(List<PackMiddle> list);

    /**
     * 根据合作商id和套餐id查询合作商信息
     *
     * @param platformId
     * @param packageId
     * @return com.bestcem.xm.om.entity.PackMiddle
     * @author zhangfeng <feng.zhang@idiaoyan.com>
     * @date 2022/7/5 16:51
     */
    PackMiddle findOneByPlatformIdAndPackageId(String platformId, String packageId);
}
